<template>
    <a-space
        wrap
        v-bind="spaceProps"
    >
        <c-image
            v-for="src in list"
            :src="src"
            :key="src"
            :mask="mask"
            :list="list"
            :preview="preview"
            :maskClosable="maskClosable"
            :escCloseable="escCloseable"
            :lockBodyScroll="lockBodyScroll"
        />
    </a-space>
</template>

<script setup lang="ts">
import type { ImageListProps } from './types.d'
withDefaults(defineProps<ImageListProps>(), {
    mask: true,
    preview: true,
    maskClosable: true,
    escCloseable: true,
    lockBodyScroll: true
})
</script>
